import type { Mapping, Option } from "@/components/ProFrom/ProFrom.vue";

export const queryFormMap: Mapping[] = [
  { label: "数据名称", type: "input", prop: "name" },

  // {
  //   label: "数据类型",
  //   type: "radio",
  //   prop: "type",
  //   options: ["基础数据", "成果数据"],
  //   col: 7,
  // },
  {
    label: "数据格式",
    type: "select",
    prop: "format",
    options: ["矢量数据", "栅格数据", "原始/影像数据", "文档"],
  },
  // {
  //   label: "练习时长",
  //   type: "date-range",
  //   prop: "date",
  //   col: 10,
  // },
];
export const editFormMap: Mapping[] = queryFormMap.map((e) => ({
  label: e.label,
  type: e.type,
  prop: e.prop,
  options: e.options,
  required: true,
}));
